<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">

	<div id="header">
		<div id="logo"><a target="_blank" href="/"><?php echo CHtml::encode(Yii::app()->name); ?></a></div>
	</div><!-- header -->

	<div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Страницы', 'url'=>array('/admin/pages/list')),
				array('label'=>'Товары', 'url'=>array('/admin/goods/list')),
				array('label'=>'Категории', 'url'=>array('/admin/category/list')),
				array('label'=>'Галлереи', 'url'=>array('/admin/gallery/list')),
				array('label'=>'Замовлення', 'url'=>array('/admin/goods/order/list/status/new')),
				array('label'=>'__________________________', 'url'=>array('')),
				array('label'=>'Run cron', 'url'=>array('/cron/parser')),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>

    <div class="sitebar-content">
	    <?php echo $content; ?>
    </div>

	<div class="clear"></div>

	<div id="footer">
		&copy; <?php echo date('Y'); ?> <?php echo Yii::app()->name; ?><br/>
	</div><!-- footer -->

</div><!-- page -->


<link rel="stylesheet" type="text/css" href="/css/admin.css" />

<link async rel="stylesheet" type="text/css" href="/js/jquery/fancybox/jquery.fancybox.css" />
<script defer src="/js/jquery/fancybox/jquery.fancybox.pack.js"></script>

<script src="/js/jquery/tiny_mce/tiny_mce.js"></script>

<script defer src="/js/admin.js"></script>

</body>
</html>
